/** Keriosity, ESIR
 * 	HomeActivity: activite d'acceuil de l'application
 *	@author: GOUYET Brett
 *	@date: 10/03/2012 
 */

package keriosity.activities;



import com.activity.keriosity.R;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.view.View.OnClickListener;

public class HomeActivity extends Activity {
	
	private Button _manual = null;
	private Button _auto = null;
	private Button _info = null;
	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_home);
		
		_manual = (Button) findViewById(R.id.manual);
		_auto = (Button) findViewById(R.id.auto);
		_info = (Button) findViewById(R.id.info);
		
		
		_manual.setOnClickListener(new OnClickListener() {public void onClick(View v) {
		
			Intent intent = new Intent(HomeActivity.this, ManualActivity.class); //on change d'activite: manuel
			startActivity(intent);
		}});//_manuel	
		
		_auto.setOnClickListener(new OnClickListener() {public void onClick(View v) {
			
			Intent intent = new Intent(HomeActivity.this, AutoActivity.class); //on change d'activite: automatique
			startActivity(intent); 	
		}});//_auto	
		
		
		
		_info.setOnClickListener(new OnClickListener() {public void onClick(View v) {
			
					
		}});//_info	
	}
}
